/* NORMALIZE */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0;}
body, button, input, select, textarea { font-family: sans-serif; color: #222; }

a { color: #508B88; text-decoration: none;}
a:visited { color: #508B88; }
a:hover, a:focus { color: #f04530; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: "Source Code Pro", monospace; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; *overflow: visible; }
table button, table input { *overflow: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.clear {
  clear: both;
  content: '';
  display: block;
}

header {
  display: none;
}

.padder {
  height: 140px;
}

html, body {
  height: 100%;
  width: 100%;
  background: #EEE;
}

.main {
  min-height: 38px;
  overflow: hidden;
  background: #ED4732;
  background: linear-gradient(0deg, #DA421C, #DB5945);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  position: relative;
}

.main #title {
  display: none;
}

.main #navtoggle {
  display: block;
  height: 25px;
  width: 44px;
  border-radius: 4px;
  border: none;
  margin: 6px 7px;
  text-indent: -1000em;
  box-shadow: 0 1px 1px rgba(255,255,255,0.6);
  background: #531911;
  background-image: url();
  background-position: center center;
  background-repeat: no-repeat;
}

.main nav {
  max-width: 1000px;
  margin: 0 auto;
}

.main nav {
  display: none;
  position: relative;
  background: #333;
  width: 100%;
  z-index: 4;
  padding-bottom: 100px;
}

.main nav.active {
  display: block;
}

.main nav ul {
  padding: 20px 0 0 17px;
}

.main nav ul li {
  font-family: Arial, sans-serif;
  display: block;
  text-transform: uppercase;
  margin-right: 10px;
  border-bottom: 1px solid #444;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  position: relative;
}

.main nav ul li:after {
  content: '';
  width: 100%;
  height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid #111;
}

.main nav ul li a {
  display: block;
  color: #FFF;
  opacity: 0.7;
  font-size: 18px;
  line-height: 50px;
  font-weight: normal;
}

.main nav ul li a:hover {
  opacity: 1;
}

/** active states for menu **/
body[data-href="tutorials"] #tutorials_menu a {
  opacity: 1;
}

.masthead {
  position: relative;
  background: #3C3237;
  height: 150px;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  position: relative;
}

.masthead a {
  display: block;
  width: 100%;
  height: 100%;
}

.masthead .container #image {
  position: absolute;
  left: 0;
  top: 25px;
  background: url(/static/images/mastheads/h5r-shadow-small.png) center top no-repeat;
  background-size: 100px 80px;
  width: 44%;
  height: 120px;
  z-index: 2;
}

.masthead .container {
  background: radial-gradient(ellipse farthest-side at top, #73646E 0%, #3C3237 100%);
}

.masthead .container h2:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse farthest-side at bottom, rgba(115,100,110,1) 0%, rgba(115,100,110,0) 100%);
  z-index: 0;
}

.masthead .container h2 {
  font-family: 'Open Sans';
  margin: 0;
  padding: 0;
  color: #FFF;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

.masthead .container span {
  display: block;
  position: absolute;
  z-index: 1;
}

.masthead .container span.large {
  font-weight: 700;
  text-transform: uppercase;
  width: 65%;
  left: 44%;
  top: 71px;
  font-size: 21px;
}

.masthead .container span.small {
  font-style: italic;
  font-weight: 100;
  left: 45%;
  width: 45%;
  top: 20px;
  font-size: 13px;
  color: #87BAB6;
}

.masthead .container span.learnmore {
  right: 5%;
  top: 100px;
  font-size: 12px;
  color: #87BAB6;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #87BAB6;
}

.search {
  position: relative;
  width: 98%;
  max-width: 1000px;
  background: #FFF;
  height: 54px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin: 0 auto;
  margin-top: -10px;
  border: 2px solid #FFF;
}

.search legend, .search label {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
}

.search #q {
  width: 74%;
  line-height: 54px;
  padding: 0 10px;
  font-size: 18px;
  font-family: 'Open Sans';
  font-weight: bold;
  color: #333;
  height: 54px;
  background: #E6E6E6;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  border: none;
  display: inline-block;
  border-radius: 0;
  -webkit-border-radius: 0;
  -webkit-appearance: none;
}

.search #search-button {
  text-indent: -2000px;
  overflow: hidden;
  width: 7%;
  right: 2%;
  height: 54px;
  min-width: 40px;
  background: url(/static/images/home/search-button.jpg) center center no-repeat;
  border: none;
  position: absolute;
}
.divider {
  padding-top: 15px;
  margin-top: 15px;
  position: relative;
  display: block;
  border-top: 1px solid #CBCBCB;
}

.divider:before {
  content: '';
  position: absolute;
  top: 0px;
  width: 100%;
  border-top: 1px solid #FFF;
}

.latest-articles {
  width: 98%;
  max-width: 1000px;
  position: relative;
  margin: 30px auto;
  margin-top: 20px;
  border-radius: 2px;
  background: #FFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.latest-articles .container {
  text-align: center;
  padding: 0 12px 30px;
  box-sizing: border-box;
}

.latest-articles .rss-feed,
.articles-list .rss-feed {
  width: 28px;
  height: 28px;
  position: absolute;
  right: 2%;
  top: 1%;
  text-indent: 30px;
  font-size: 0;
  overflow: hidden;
  background: url(/static/images/rss.png);
  background-size: 28px 28px;
}

.latest-articles h2 {
  font-family: 'Open Sans';
  font-size: 26px;
  font-weight: 800;
  color: #5FA49F;
  margin: 0 0 0.8em 0;
  padding: 0.7em 0 0 4%;
}

.latest-articles ul {
  margin: 0;
  padding: 0;
  float: left;
}

.latest-articles ul li {
  margin: 0 0 20px 0;
  padding: 0 0 20px 0;
  border-bottom: 1px solid #DDD;
  list-style: none;
  width: 100%;
  background: #FFF;
  display: block;
  float: left;
}

.latest-articles ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-articles ul li a {
  display: block;
  background: #FFF;
}

.latest-articles .left {
  display: block;
  float: left;
  width: 13%;
  min-width: 70px;
  padding-left: 4%;
}

.latest-articles .right {
  display: block;
  float: left;
  width: 70%;
  margin: 0 0 0 1%;
}

.latest-articles .author img {
  border: 2px solid #FFF;
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.latest-articles .title {
  color: #333;
  font-size: 15px;
  font-family: 'Open Sans';
  font-weight: 800;
  display: block;
  margin-bottom: 0.6em;
  transition: color 0.3s ease-out;
}

.latest-articles a:hover .title {
  color: #666;
}

.latest-articles .description {
  color: #666;
  font-size: 13px;
  line-height: 1.3;
}

.landing-pages {
  width: 98%;
  max-width: 1000px;
  position: relative;
  margin: 0 auto;
  background: #FFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border-radius: 4px;
}

.landing-pages .panel {
  margin: 0 0 20px 0;
  padding: 0 0 20px 0;
  border-bottom: 1px solid #DDD;
}

.landing-pages .panel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-pages .panel .left {
  width: 13%;
  min-width: 75px;
  min-height: 50px;
  padding-left: 4%;
  float: left;
  display: block;
}

.landing-pages .panel .icon {
  width: 66px;
  height: 66px;
  background: url();
  background-size: 197.5px 65.5px;
  margin-top: 20px;
}

.landing-pages .panel.performance .icon {
  background-position: -264.5px 0;
}

.landing-pages .panel .right {
  width: 70%;
  float: left;
  display: block;
  margin: 0 0 0 1%;
}

.landing-pages .panel a {
  display: block;
}

.landing-pages .panel h2 {
  color: #333;
  font-size: 28px;
  font-family: 'Open Sans';
  font-weight: 300;
  display: block;
  margin-bottom: 0.6em;
  transition: color 0.3s ease-out;
}

.landing-pages .panel p {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.google-project {
  color: #444;
  margin-top: 20px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  text-align: center;
  font-size: 14px;
  position: relative;
}

kbd, .kbd {
  padding: 0.1em 0.6em;
  border: 1px solid rgb(204, 204, 204);
  font-family: Arial,Helvetica,sans-serif;
  background-color: rgb(247, 247, 247);
  color: rgb(51, 51, 51);
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px rgb(255, 255, 255) inset;
  border-radius: 3px;
  display: inline-block;
  margin: 0 0.1em;
  text-shadow: 0 1px 0 rgb(255, 255, 255);
  line-height: 1.5;
  white-space: nowrap;
}

@media screen and (min-width: 430px) {
  .divider {
    padding-top: 25px;
    margin-top: 25px;
  }

  .masthead .container span.large {
    font-size: 21px;
    top: 69px;
    left: 56%;
  }

  .masthead .container span.small {
    font-size: 15px;
  }
}

@media screen and (min-width: 500px) {

  .masthead {
    height: 198px;
  }

  .masthead .container #image {
    background: url(/static/images/mastheads/h5r-shadow.png) center top no-repeat;
    background-size: 177px 140px;
    width: 35%;
    height: 140px;
    top: 20px;
    left: 17px;
  }

  .masthead .container span.small {
    top: 35px;
    font-size: 17px;
  }

  .masthead .container span.large {
    top: 88px;
    font-size: 31px;
    left: 46%;
  }

  .masthead .container span.learnmore {
    top: 135px;
    font-size: 17px;
  }

  .search {
    border: none;
    width: 96%;
    padding: 2%;
  }

  .search #q {
    width: 85%;
  }
}

@media screen and (min-width: 620px) {

  .latest-articles h2 {
    padding-left: 2%;
  }

  .latest-articles ul {
    padding: 0 0 0 2%;
  }

  .latest-articles ul li {
    width: 47.5%;
    height: 140px;
    margin: 0 2% 20px 0;
  }

  .latest-articles .left {
    width: 20%;
    padding: 0;
  }

  .latest-articles .right {
    width: 71%;
  }

  .landing-pages {
    width: 98%;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: none;
  }

  .landing-pages .panel {
    width: 45%;
    height: 180px;
    margin: 0 2% 20px 0;
    padding: 2%;
    float: left;
    border: none;
    background: #FFF;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
  }

  .landing-pages .panel:nth-child(2) {
    margin: 0 0 20px 0;
    padding-bottom: 2%;
  }

  .landing-pages .panel .left {
    width: 20%;
    padding: 0;
  }

  .landing-pages .panel .right {
    width: 71%;
  }
}

@media screen and (min-width: 700px) {

  .main {
    min-height: 50px;
  }

  .main #navtoggle {
    display: none;
  }

  .main nav {
    display: block;
    background: none;
    position: relative;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    padding-bottom: 0;
  }

  .main nav ul {
    padding: 0 17px;
  }

  .main nav ul li {
    display: inline;
    line-height: 50px;
    border-bottom: none;
  }

  .main nav ul li:after {
    display: none;
  }

  .main nav ul li a {
    font-size: 14px;
    display: inline;
  }

  .masthead .container span.large {
    left: 45%;
    top: 77px;
    font-size: 43px;
  }

  .masthead .container span.small {
    width: 55%;
    left: 38%;
    top: 32px;
    font-size: 20px;
  }
}

@media screen and (min-width: 735px) {
  .latest-articles .right {
    width: 78%;
  }
}

@media screen and (min-width: 770px) {
  .masthead {
    height: 408px;
  }

  .masthead .container #image {
    background-size: 245px 194px;
    width: 245px;
    height: 194px;
    top: 70px;
    left: 5%;
  }

  .masthead .container span.large {
    font-size: 48px;
    top: 162px;
    left: 49%;
  }

  .masthead .container span.small {
    font-size: 26px;
    top: 80px;
    width: 50%;
    left: 43%;
  }

  .masthead .container span.learnmore {
    font-size: 22px;
    top: 240px;
  }

  .masthead .container span.learnmore:after {
    content: ' →';
  }

  .search {
    margin-top: -33px;
    width: 98%;
    padding: 1%;
  }

  .search #q {
    width: 88%;
  }
}

@media screen and (min-width: 915px) {

  .latest-articles ul li {
    width: 31%;
    height: 140px;
    margin: 0 2% 20px 0;
    border-bottom: none;
  }

  .latest-articles .right {
    width: 73%;
  }

  .landing-pages .panel .icon {
    margin-left: 7px;
  }
}

@media screen and (min-width: 1000px) {
  .masthead .container #image {
    top: 75px;
  }

  .masthead .container span.large {
    font-size: 70px;
    top: 164px;
    left: 40%;
    width: 64%;
    line-height: 1.05;
    letter-spacing: -3px;
  }

  .masthead .container span.small {
    font-size: 28px;
    top: 100px;
    left: 34%;
    width: 60%;
  }

  .search {
    border-radius: 4px;
    padding: 0;
    height: 74px;
  }

  .search #q {
    width: 88%;
    margin: 1%;
  }

  .search #search-button {
    right: 1%;
    margin-top: 9px;
  }

  .landing-pages {
    width: 98%;
  }

  .latest-articles .rss-feed {
    top: 2%;
    right: 1%;
  }

  .landing-pages .panel .icon {
    margin-left: 9px;
  }
}
